package com.ssy.lingxi.marketing.api.model.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 *  活动商品销量项
 * @author ds
 * @date 2021/10/13
 * @version 2.0.0
 */
@Getter
@Setter
public class GoodsSalesItemReq implements Serializable {

    private static final long serialVersionUID = 6667376580384760744L;
    /**
     * 商品skuId
     */
    @NotNull(message = "商品skuId不能为空")
    private Long skuId;
    /**
     * 购买数量【取消订单，退货为负数】
     */
    @NotNull(message = "购买数量不能为空")
    private Double num;
    /**
     * 实购金额【取消订单，退货为负数】
     */
    private Double amount;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 订单编号/退货申请单号
     */
    @NotBlank(message = "订单编号不能为空")
    private String orderNo;
    /**
     * 源订单号(如果为退货申请单才存在)
     */
    private String originOrderNo;

    @Valid
    private List<GoodsSalesItemActivityReq> activityList;
}
